package com.github.edu.repair.manager.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
@Entity
@Table(name = "t_bx_yhlxdz")
public class TBxYhlxdz implements Serializable {
    private Integer id;
    private Integer userid;
    private Integer ly;
    private String mph;
    private String lxdh;
    private Integer sfqy;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "userid")
    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    @Basic
    @Column(name = "ly")
    public Integer getLy() {
        return ly;
    }

    public void setLy(Integer ly) {
        this.ly = ly;
    }

    @Basic
    @Column(name = "mph")
    public String getMph() {
        return mph;
    }

    public void setMph(String mph) {
        this.mph = mph;
    }

    @Basic
    @Column(name = "lxdh")
    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    @Basic
    @Column(name = "sfqy")
    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        this.sfqy = sfqy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TBxYhlxdz tBxYhlxdz = (TBxYhlxdz) o;
        return Objects.equals(id, tBxYhlxdz.id) &&
                Objects.equals(userid, tBxYhlxdz.userid) &&
                Objects.equals(ly, tBxYhlxdz.ly) &&
                Objects.equals(mph, tBxYhlxdz.mph) &&
                Objects.equals(lxdh, tBxYhlxdz.lxdh) &&
                Objects.equals(sfqy, tBxYhlxdz.sfqy);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userid, ly, mph, lxdh, sfqy);
    }
}
